SetDeletionProtection
Description
call the SetDeletionProtection interface to modify the delete protection attribute of the resource stack.
Request Method
POST
Request Path
/apsara/route/ROS/SetDeletionProtection
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
DeletionProtection | BODY | string | Yes | Enabled | whether to enable stack deletion protection, value: Enabled: enable stack deletion protection. Disabled (default): turn off stack deletion protection. At this time, the resource stack can be released through the console or API(DeleteStack). description nested resource stack deletion protection is consistent with the root resource stack. |
RegionId | BODY | string | Yes | cn-hangzhou | the region ID to which the resource stack belongs. |
version | BODY | string | No | 2016-01-01 | version of api |
StackId | BODY | string | Yes | 4a6c9851-3b0f-4f5f-b4ca-a14bf691**** | resource stack ID. The deletion protection attribute of the nested resource stack is determined by the root resource stack, is always consistent with the root resource stack, and cannot be modified. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}